package com.fy.service.imbusiness.controller;


import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fy.framework.common.model.R;
import com.fy.common.dto.UserRegisterAndLoginDto;
import com.fy.service.imbusiness.service.RegisterAndLoginService;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * 用户注册
 *
 * @author zhshuo
 * @date 2021/11/29 17:28
 **/
@Slf4j
@Deprecated
@RestController
@AllArgsConstructor
// @Api(tags ="用户注册")
@RequestMapping("/user/register")
public class RegisterController {

    RegisterAndLoginService registerAndLoginService;

    /**
     * 用户注册
     *
     * @return
     */
    @PostMapping
    // @ApiOperation("用户注册")
    public R<?> register(@RequestBody UserRegisterAndLoginDto userRegisterDto ) {
        return registerAndLoginService.doUserRegister(userRegisterDto);
    }

}
